import baseRequest from './base';
/***
 * 登录
 */
export function login(obj) {
  let requestConfig = {
    url: '/login'
  };
  return baseRequest(obj, requestConfig);
}
/***
 * 修改密码 
 */
export function changePsd(obj) {
  let requestConfig = {
    url: '/changpassword'
  };
  return baseRequest(obj, requestConfig);
}

/***
 * 退出
 */
export function loginout(obj) {
  let requestConfig = {
    url: '/loginout'
  };
  return baseRequest(obj, requestConfig);
}
/***
 * 注册
 */
export function register(obj) {
  let requestConfig = {
    url: '/onregister'
  };
  return baseRequest(obj, requestConfig);
}

/***
 * 注册发送短信
 */
export function requestdx(obj) {
  let requestConfig = {
    url: '/requestdx',
    headers: {
      'content-type': 'application/json',
      'astokenid': obj.aid
    }
  };
  return baseRequest(obj, requestConfig);
}
/***
 * 校验用户tokenid的有效性 
 */
export function checkusertokenid(obj) {
  let requestConfig = {
    url: '/checkusertokenid'
  };
  return baseRequest(obj, requestConfig);
}
/***
 * 获取版本数据 

 */
export function getsoftversion() {
  let requestConfig = {
    url: '/getsoftversion'
  };
  return baseRequest({}, requestConfig);
}
